package org.edu.modules.growth.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.edu.common.api.vo.Result;
import org.edu.common.system.base.controller.BaseController;
import org.edu.modules.growth.entity.VeJsczLearntraining;
import org.edu.modules.growth.service.IVeJsczLearntrainingService;
import org.edu.modules.growth.vo.QueryCondition;
import org.springframework.web.bind.annotation.*;

@Api(tags="任课教师成长档案管理--教师继续教育培训经历管理")
@RestController
@RequestMapping("jsczLearntraining")
@Slf4j
@AllArgsConstructor
public class VeJsczLearntrainingController extends BaseController<VeJsczLearntraining, IVeJsczLearntrainingService> {

    private IVeJsczLearntrainingService mIVeJsczLearntrainingService;

    /**
     * 分页查询教师信息
     */
    @ApiOperation(value = "分页查询信息")
    @PostMapping("/selectPage")
    public Result<?> selectPage(@RequestBody QueryCondition queryCondition ) {
        return Result.OK(mIVeJsczLearntrainingService.selectPage(queryCondition));
    }

    /**
     * 根据id详情
     */
    @ApiOperation(value = "根据id详情")
    @PostMapping("/getDetail")
    public Result<VeJsczLearntraining> getDetail(@RequestParam("id") Long id) {
        return Result.OK(mIVeJsczLearntrainingService.getById(id));
    }


}
